Skip to content

Conversation

@osamamagdy
Copy link
Contributor

@osamamagdy osamamagdy commented Oct 11, 2024

What this PR does / why we need it:
This PR adds a tutorial on how to integrate with cc-tools project, specially using the cc-tools-demo project

Which issue(s) this PR fixes:

Fixes the LFX mentorship project Hyperledger Fabric CC-Tools Support for Fabric Private Chaincode

Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy marked this pull request as ready for review October 11, 2024 11:21
@osamamagdy osamamagdy requested a review from a team as a code owner October 11, 2024 11:21
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy force-pushed the feature/integrate-with-cc-tools branch from 39d2366 to a064eb0 Compare October 11, 2024 11:31
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Copy link
Contributor

@munapower munapower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to follow but wasn't able to compile the changes for main.go

Copy link
Contributor

@mbrandenburger mbrandenburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @osamamagdy this is pretty cool! Let's shape it a bit more!

Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy force-pushed the feature/integrate-with-cc-tools branch from 92e4665 to 1ec09a9 Compare October 15, 2024 23:08
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy force-pushed the feature/integrate-with-cc-tools branch from 87db6e1 to ae668f1 Compare October 22, 2024 00:01
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Copy link
Contributor

@mbrandenburger mbrandenburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks pretty good to me! My only remaining concern is about the readme instructions where sudo is used. As commented, I believe it not necessary for every developer ... and I think it is not good practise to let people run sudo commands when following this tutorial.

Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy force-pushed the feature/integrate-with-cc-tools branch from 3053333 to 06e1453 Compare November 29, 2024 13:38
osamamagdy and others added 2 commits November 29, 2024 17:09
Co-authored-by: Marcus Brandenburger <mbrandenburger@users.noreply.github.com>
Signed-off-by: Osama Magdy <59124937+osamamagdy@users.noreply.github.com>
Co-authored-by: Marcus Brandenburger <mbrandenburger@users.noreply.github.com>
Signed-off-by: Osama Magdy <59124937+osamamagdy@users.noreply.github.com>
Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@osamamagdy osamamagdy force-pushed the feature/integrate-with-cc-tools branch from a99d1d0 to 2e80ab2 Compare November 29, 2024 19:53
make
```

**Note**: For those who have arm-based computers, you should use the method recommended in the [main readme](https://github.com/hyperledger/fabric-private-chaincode?tab=readme-ov-file#fpc-playground-for-non-sgx-environments) for building both the cc-tools-demo chaincode as well as ercc.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am with an M1 and building cc-tools-demo with the provided instructions (make) worked normally. Only needed the additional instructions for ercc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great but I think on @munapower side, she needed it for both I think? as per this comment #779 (comment)

Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
@mbrandenburger mbrandenburger merged commit 88b7c21 into hyperledger:main Dec 3, 2024
4 checks passed
osamamagdy added a commit to osamamagdy/fabric-private-chaincode that referenced this pull request Jan 17, 2025
CC-tools demo with FPC

Create a new demo in `samples/chaincode/cc-tools-demo` to showcase the integration of FPC with CC-tools.
The demo runs on top of the test-network sample simple-cli.

Signed-off-by: osamamagdy <osamamagdy174@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants